Xbasic
Helper::GoogleDriveListFiles Method
Syntax
ListFiles as C()
Returns
- resultCharacter
Returns a list of all the files on the google drive folderId supplied to class.
Description
List Files in supplied google drive folder.
Note that the namedResource property of the Helper::GoogleDrive instance will need to be set.
Example
dim folderId as c = "6T0fKHqJXB3hTSTCaR2l_AfN1vd7F4CrW" dim gd as helper::googleDrive gd.namedResource = "gs2" gd.folderId = folderId ? gd.ListFiles() = [ { "kind": "drive#file", "id": "7qFWQy19lykUT99oAFH9sEIOl6fDDxk1gIzlb7MyFOUU", "name": "GoogleTestSheet", "mimeType": "application/vnd.google-apps.spreadsheet" }, { "kind": "drive#file", "id": "10RH22-HL2zO-XfWp8bRTuDdIec2bQsbT", "name": "Employees_Photo9.bmp", "mimeType": "image/bmp" }, { "kind": "drive#file", "id": "2Ym12tJMzcI6UqHGzNFFhN-SPUwEF42oR", "name": "Employees_Photo8.bmp", "mimeType": "image/bmp" },